package com.sunny.spring_boot_test.domain.properties;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 自定义Property
 */
@Component
public class SunnyProperties {
    @Value("${com.sunny.title}")
    private String title;
    @Value("${com.sunny.description}")
    private String description;

    public String getTitle() {
        return title;
    }

    public String getDescription() {
        return description;
    }
}
